package com.yeban.javase.day02.test04;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/10
 */
public class Manager extends Employee{

    private String department;    // 所管部门

    public Manager() {
    }

    public Manager(String department) {
        this.department = department;
    }

    public Manager(String name, String address, int salary, String department) {
        super(name, address, salary);
        this.department = department;
    }

    public void show() {
        super.show();
    }

    /**
     * 获取
     * @return department
     */
    public String getDepartment() {
        return department;
    }

    /**
     * 设置
     * @param department
     */
    public void setDepartment(String department) {
        this.department = department;
    }

    public String toString() {
        return this.getName() + " " + this.getDepartment() + " " + this.getSalary() + " " + this.getDepartment();
    }
}
